<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GonzalesToolsAddressBookOnEmployeeID.aspx.cs" Inherits="GonzalesToolsAddressBookOnEmployeeID" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Untitled Page</title>
    <link href="WebStyle.css" rel="stylesheet" type="text/css" />
</head>

<script language="javascript" type="text/javascript">



    function SelectOnClick (id, name) {        
        document.getElementById("employee_internalid").value = id;
        document.getElementById("employee_name").value = name;
        document.getElementById("hiddenValue").value="";
        
        parent.ModalWindow.hide();
        
    }

    function CloseWindow() {
        document.getElementById("hiddenValue").value="close";
        return true;
    }

</script>

<body>
<form id="FormModal" method="post" runat="server">
    <input type="hidden" name="employee_internalid" id="employee_internalid" />
    <input type="hidden" name="employee_name" id="employee_name" />
    <input type="hidden" name="hiddenValue" id="hiddenValue" />
  <table width="100%" border="0" cellpadding="2" cellspacing="1">
    <tr>
      <td height="40" class="PageTitle"><asp:Label ID="Label_Title" runat="server" Text='Address Book'></asp:Label></td>
    </tr>
    <tr>
      <td>
          <table width="100%" border="0" cellpadding="2" cellspacing="0" class="FormBorder">
            <tr>
              <td class="TableResultCriteriaBar"><table width="100%" border="0" cellspacing="0" cellpadding="1">
                  <tr>
                    <td><asp:DropDownList CssClass="FormDropDown" ID="DropDownList_ByEntity" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_ByEntity_SelectedIndexChanged"></asp:DropDownList>
                    <asp:DropDownList ID="DropDownList_ByCompany" runat="server" OnSelectedIndexChanged="DropDownList_ByCompany_SelectedIndexChanged" CssClass="FormDropDown" AutoPostBack="True"></asp:DropDownList></td>
                    <td align="right"><asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortBy" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_SortBy_SelectedIndexChanged"></asp:DropDownList>
                        <asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortOrder" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList_SortOrder_SelectedIndexChanged"></asp:DropDownList></td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td valign="top"><asp:GridView ID="GridViewResult" OnRowCreated="OnRowCreated" runat="server" AutoGenerateColumns="False"
              BorderStyle="None" BorderWidth="0px" CellPadding="5" CssClass="FormBorder" Width="100%" >
                <columns>
                <asp:BoundField DataField="EmployeeID" HeaderText="Employee ID" HtmlEncode="False">
                  <itemstyle HorizontalAlign="Center" Width="120px" />              </asp:BoundField>
                    <asp:BoundField DataField="ADName" HeaderText="Active Directory ID">
                        <HeaderStyle HorizontalAlign="Left" />
                    </asp:BoundField>
                <asp:BoundField DataField="DisplayName" HeaderText="Name">
                    <HeaderStyle HorizontalAlign="Left" />
                  </asp:BoundField>
                </columns>
                <RowStyle CssClass="GridViewItem" />
                <headerstyle CssClass="GridViewHeader" />              
</asp:GridView></td>
            </tr>
          </table>
    </td>
    </tr>
    <tr>
      <td><asp:Button CssClass="FormButton" ID="Button_Cancel" runat="server" Text="Cancel" /></td>
    </tr>
  </table>
</form>
</body>
</html>
